<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <%@include file="includes/header2.jsp" %>



        <div id="mainbody_right">
         
        <form action="CreateCustomer.do" method="POST">
                    <p><label for="givenname">Given Name :</label> <br/>
                    <input name="givenname" id="givenname" type="text" /> <em id="givennameCheck" > </em>
                    </p>

                    <p><label for="surname">Surname</label> <br/>
                    <input name="surname" id="surname" type="text" /> <em id="surnameCheck" > </em>
                    </p>
            
                    <p><label for="phoneno">Phone Number</label> <br/>
                    <input name="phoneno" id="phoneno" type="text" /> <em id="phonenumberCheck" > </em>
                    </p>
            
                    <p><label for="email">Email</label> <br/>
                    <input name="email" id="email" type="text" /> <em id="emailCheck" > </em>
                    </p>

                    <p> <label for="company">Company :</label> <br/>
                        <select name="company" size="1">
                        <option value="">Select Company </option>
                       <c:forEach var="company" begin="0" items="${requestScope.companyList}">
                            <option value="${company.com_id}">${company.companyname}</option>
                        </c:forEach>
                     </select>
                    </p>
            <br/>

            <input type="submit" value="CreateCustomer" class="submitbutton" onclick="return validateCustomer();" />
       </form>

                 <div class="cleaner">&nbsp;</div>
        </div>

    <%@include file="includes/footer.jsp" %>

</html>